# -*- coding: utf-8 -*-
# @Time    : 2020/10/27 15:56
# @Author  : Mr. Cui
# @File    : my_celery.py
# @Software: PyCharm
from __future__ import absolute_import
from celery import Celery
from application.settings import Config
# from manage import celery

app = Celery('my_celery',
             broker=Config.CELERY_BROKER_URL,
             backend=Config.CELERY_BACKEND_URL,
             include=['async_task.tasks'],
             imports=('tasks',))
# Optional configuration, see the application user guide.
app.conf.update(
    result_expires=3600,
)

# if __name__ == '__main__':
#     app.start()
